@echo off
SETLOCAL ENABLEEXTENSIONS

set PFILES=%ProgramFiles%
IF DEFINED ProgramFiles(x86) set PFILES=%ProgramFiles(x86)%

IF NOT DEFINED XNAGSv3 (
    echo XNA 3.0 is not installed!
    EXIT /B 1
)

set XNA_PATH=%XNAGSv3%\References\Windows\x86
set FARSEER_PATH=..\ExternalResources\Farseer
set FSC="%PFILES%\FSharp\bin\fsc.exe"

%FSC% -o fsharp-boids.dll --fullpaths --progress -a -Ooff -g -I "%XNA_PATH%" -I "%FARSEER_PATH%"  -r FarseerGames.FarseerPhysics.dll -r Microsoft.Xna.Framework.dll *.fs